package com.useeinfo.oa.modules.inspection.entity;

import com.useeinfo.framework.extend.entity.SuperClassEntity;
import com.useeinfo.oa.modules.base.entity.DictInfo;
import com.useeinfo.oa.modules.base.entity.Enterprise;
import com.useeinfo.oa.modules.security.entity.SystemUser;

import javax.persistence.*;

/**
 * @Auther: chenwei
 * @Date: 2019/1/2 15:11
 * @Description: 维保参与人
 */
@Entity
@Table(name = "inspection_partner")
public class InspectionPartner extends SuperClassEntity<InspectionPartner> {
    /**
     * 申请原因
     */
    private String reason;

    /**
     * 协作类型
     */
    @ManyToOne
    @JoinColumn(name = "teamwork_cat")
    private DictInfo teamworkCat;

    /**
     * 巡检单
     */
    @ManyToOne
    @JoinColumn(name = "inspection_order_id")
    private InspectionOrder inspectionOrder;

    /**
     * 我的工时
     */
    private long workingHours;

    /**
     * 参与人
     */
    @ManyToOne
    @JoinColumn(name = "partner_id")
    private SystemUser partner;

    /**
     * 企业
     */
    @ManyToOne
    @JoinColumn(name = "enterprise_id")
    private Enterprise enterprise;



    /**
     * {"snap": ,"content": ""}
     */
    @Column(length = 500)
    private String content;

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public DictInfo getTeamworkCat() {
        return teamworkCat;
    }

    public void setTeamworkCat(DictInfo teamworkCat) {
        this.teamworkCat = teamworkCat;
    }

    public long getWorkingHours() {
        return workingHours;
    }

    public void setWorkingHours(long workingHours) {
        this.workingHours = workingHours;
    }

    public SystemUser getPartner() {
        return partner;
    }

    public void setPartner(SystemUser partner) {
        this.partner = partner;
    }

    public Enterprise getEnterprise() {
        return enterprise;
    }

    public void setEnterprise(Enterprise enterprise) {
        this.enterprise = enterprise;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public InspectionOrder getInspectionOrder() {
        return inspectionOrder;
    }

    public void setInspectionOrder(InspectionOrder inspectionOrder) {
        this.inspectionOrder = inspectionOrder;
    }
}
